from utils.decorators import api
from utils.http_visit import HttpMethod

from common.intercept import Mock
from common.api_router import BaiduRouter


class BaiduSearch:
    @api(path=BaiduRouter.INDEX, method=HttpMethod.GET)
    def index(self): ...

    @api(path=BaiduRouter.SEARCH, method=HttpMethod.GET, interceptor=Mock(201))
    def search(self): ...



